package function;

import model.Author;
import model.GetAuthors;

import java.util.List;

public class ForEach {
    public static void main(String[] args) {
        List<Author> authors = GetAuthors.getAuthors();
        authors.stream()
                .forEach((author-> System.out.println(author.getName())));
    }
}
